{% extends "base_generic.html" %}

{% block content %}
<h1>{% if form.instance.pk %}编辑{% else %}新增{% endif %}书籍</h1>
<form action="" method="post">
    {% csrf_token %}
    <table>
        {{ form.as_table }}
    </table>
    <input type="submit" value="提交">
</form>
{% endblock %}